<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title><?php echo $title_for_layout?></title>
<head>
<?php echo $this->Html->css('cake.generic'); ?>
<!-- Include external files and scripts here (See HTML helper for more info.) -->
<?php echo $scripts_for_layout ?>
</head>
<body>
	<table style="width: 100%; border-collapse: collapse; ">
		<tbody>
			<tr>
                            <td style="width: 20%; vertical-align: top; letter-spacing: 0px; word-spacing: 0px; ">
                                <h1>SALT Solutions</h1>
                                <h2>Mitarbeitererfassung</h2></td>
				<td style="text-align: right;">
                                <?php
                                if (isset ($User['User']['username']))
                                {
                                    echo "User: " . $User['User']['username'];
                                    echo " - " . $this->Html->link('Logout', '/users/logout');

                                } else {
                                    echo $this->Html->link('Login', '/users/login');
                                }
                                ?></td>
			</tr>
			<tr>
				<td style="width: 20%; vertical-align: top; letter-spacing: 0px; word-spacing: 0px; ">
                                    <div id="header">
                                        <div id="menu"><?php echo $this->element('menu');?></div>
                                    </div>
                                </td>
				<td><?php echo $content_for_layout ?></td>
			</tr>
		</tbody>
	</table>
<?php //debug($User); ?>
</body>
</html>
